﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Threading;
using System.Net;

namespace TCP
{
    public class Client
    {
        private TcpClient m_Client;

        public Client()
        {
            m_Client = new System.Net.Sockets.TcpClient();
            
            IPEndPoint serverEndPoint = new IPEndPoint(IPAddress.Parse("192.168.0.134"), 3434);
            m_Client.Connect(serverEndPoint);
        }

        public void send(byte[] buffer)
        {
            NetworkStream clientStream = m_Client.GetStream();
            clientStream.Write(buffer, 0, buffer.Length);
            clientStream.Flush();
        }
    }
}
